package org.ztest.spring.jdbc;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class SpringJdbcTest
{
    public void test() {
        AnnotationConfigApplicationContext app = new AnnotationConfigApplicationContext(JDBCDI.class);
        Image img = new Image();
        img.setData("data");
        img.setEmoji("emoji");
        img.setId(1);
        app.getBean(ImageDao2.class).save(img);
        app.close();
    }
}
